namespace NalogGarLoader.Model.GarRepositoryReader;

public record GarRepositoryEntry(    
    string FullFileName, 
    DateOnly GarVersion, 
    string GarType, 
    Func<GarRepositoryEntry, Stream> GetStreamDelegate,
    string? StateId = null
    ) 
{
    public string? FileName { get => Path.GetFileName(this.FullFileName); }

    public override string ToString()
    {
        return $"FileName: {this.FileName}; StateId: {this.StateId ?? ""}; Type: {this.GarType}";
    }
}
